﻿namespace HauWei.RepUtils
{
    using DevExpress.Utils;
    using DevExpress.XtraTab;
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.IO;
    using System.Reflection;
    using System.Windows.Forms;

    public class MainFeaturesControl : ModuleControl
    {
        private IContainer icontainer = null;
        private RichTextBox richTextBox;
        private XtraTabControl xtraTabControl;
        private XtraTabPage xtraTabPage;

        public MainFeaturesControl()
        {
            this.InitializeComponent();
        }

        public override void Activate()
        {
            Stream manifestResourceStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("XtraReportsDemos.BaseForms.ReportsAbout.rtf");
            this.richTextBox.LoadFile(manifestResourceStream, RichTextBoxStreamType.RichText);
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.icontainer != null))
            {
                this.icontainer.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.xtraTabControl = new XtraTabControl();
            this.xtraTabPage = new XtraTabPage();
            this.richTextBox = new RichTextBox();
            this.xtraTabControl.BeginInit();
            this.xtraTabControl.SuspendLayout();
            this.xtraTabPage.SuspendLayout();
            base.SuspendLayout();
            this.xtraTabControl.Dock = DockStyle.Fill;
            this.xtraTabControl.Location = new Point(0, 0);
            this.xtraTabControl.Name = "xtraTabControl1";
            this.xtraTabControl.SelectedTabPage = this.xtraTabPage;
            this.xtraTabControl.ShowTabHeader = DefaultBoolean.False;
            this.xtraTabControl.Size = new Size(0xb8, 0x7c);
            this.xtraTabControl.TabIndex = 0;
            this.xtraTabControl.TabPages.AddRange(new XtraTabPage[] { this.xtraTabPage });
            this.xtraTabPage.Controls.Add(this.richTextBox);
            this.xtraTabPage.Name = "xtraTabPage1";
            this.xtraTabPage.Size = new Size(0xb1, 0x75);
            this.xtraTabPage.Text = "xtraTabPage1";
            this.richTextBox.BackColor = Color.White;
            this.richTextBox.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.richTextBox.Dock = DockStyle.Fill;
            this.richTextBox.ForeColor = Color.Black;
            this.richTextBox.Location = new Point(0, 0);
            this.richTextBox.Name = "rtbFeatures";
            this.richTextBox.ReadOnly = true;
            this.richTextBox.Size = new Size(0xb1, 0x75);
            this.richTextBox.TabIndex = 1;
            this.richTextBox.Text = "";
            base.Controls.Add(this.xtraTabControl);
            base.Name = "MainFeaturesControl";
            base.Size = new Size(0xb8, 0x7c);
            this.xtraTabControl.EndInit();
            this.xtraTabControl.ResumeLayout(false);
            this.xtraTabPage.ResumeLayout(false);
            base.ResumeLayout(false);
        }
    }
}

